package com.breakfast.fun.ui.user.address;

import com.breakfast.fun.base.BaseModel;
import com.breakfast.fun.base.BasePresenter;
import com.breakfast.fun.base.BaseView;
import com.breakfast.fun.data.entity.user.address.Address;

import java.util.Map;

import retrofit2.http.FieldMap;
import rx.Observable;

/**
 * Created by hp on 2016/9/8.
 */
public interface UserAddressContract {

    interface Model extends BaseModel {
        Observable<Address> getAddressModel(@FieldMap Map<String, String> map);
    }

    interface View extends BaseView {
        void showAddress(Address address);
    }

    abstract class Presenter extends BasePresenter<Model, View> {
        public abstract void getAddress();
    }
}
